# 不定长参数
# 加了星号 * 的参数会以元组(tuple)的形式导入，存放所有未命名的变量参数


def showinfo(arg1, *vartuple):
    print("输出: ")
    print(arg1)
    print(vartuple)


print("-------------")

showinfo(9, "8", 7, 6, 5, 4, 3, 2, "1")
showinfo(9)


# 加了两个星号 ** 的参数会以字典的形式导入


def showinfo(arg1, **vardict):
    print("输出: ")
    print(arg1)
    print(vardict)
    print("-------------")


showinfo("arg1", a=1, b=2)
showinfo("arg1")
# dict = {}
# dict["AMP"] = ["Zhenli", "Gaowen"];
# dict["DS"] = ["pengfei", "suxia"]
# showinfo("arg1", dict) # 不定长参数不能显示传值
